#include "irrlicht.h"

using namespace irr;

using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

int loadGui()
{
    IrrlichtDevice *device = createDevice( EDT_OPENGL, dimension2d<u32>(1024, 768), 32, 0, 0, 0, 0);
    IGUIEnvironment* guienv = device->getGUIEnvironment();
    IVideoDriver* driver = device->getVideoDriver();

    guienv->loadGUI("./mitp-base/GUI/mainMenu.xml");

    while(device->run())
    {
        driver->beginScene(true, true, SColor(255,128,128,128));

        guienv->drawAll();

        driver->endScene();
    }
    return 0;
}
